package org.fsconnector.spi;

import javax.resource.ResourceException;
import javax.resource.spi.ConnectionManager;
import javax.resource.spi.ConnectionRequestInfo;
import javax.resource.spi.ManagedConnectionFactory;

public class FSConnectionManager implements ConnectionManager {

	private static final long serialVersionUID = -3138062274103097521L;

	public Object allocateConnection(ManagedConnectionFactory mcf,
			ConnectionRequestInfo cxRequestInfo) throws ResourceException {
		return mcf.createManagedConnection(null, cxRequestInfo).getConnection(null,
				cxRequestInfo);
	}

}
